import os
from config.ConfUi import ROOT_DIR

case_path = os.path.join(os.getcwd())
PATH = os.path.split(os.path.realpath(__file__))[0]

failureException = AssertionError

if __name__ == '__main__':
    os.system("pytest -s  {}/TestCase --alluredir=report".format(ROOT_DIR))
    # pytest.main(['-s', '-v', 'TestCase', '--html=report/1.html'])
    # pytest.main(['-s', f"{ROOT_DIR}", f"  --alluredir report"])
    # pytest.main()
    os.popen("allure generate report/ -o result/ --clean")
    # os.popen("allure open -h 0.0.0.0 -p 8083 result/")
